<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
	xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"
	layout:decorator="page">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>分页</title>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
</head>

<body>
	<div th:fragment="SMSPager">
		<div class="row" th:object="${smsPageBean}">
			<div class="col-xs-6 col-md-4">
				<span th:text="共有+*{recordCount}+条记录"></span>
			</div>
			<div class="col-xs-6 col-md-4">
				<nav aria-label="...">
				<ul class="pagination">
					<li class="page-item"><a class="page-link" href="#"
						th:href="@{getSMS(mobile=${sms.mobile})}">首页</a></li>
					<div
						th:each="pg : *{#numbers.sequence(beginPageIndex, endPageIndex)}">
						<li class="page-item active"
							th:if="${pg eq smsPageBean.currentPage}"><a
							class="page-link" href="#" th:text="${pg}"> <span
								class="sr-only">(current)</span></a></li>
						<li class="page-item" th:unless="${pg eq smsPageBean.currentPage}"><a
							class="page-link" href="#"
							th:href="@{getSMS(currentPage=${pg},mobile=${sms.mobile})}"
							th:text="${pg}"></a></li>
					</div>
					<li class="page-item"><a class="page-link" href="#"
						th:href="@{getSMS(currentPage=*{pageCount} eq 0 ? '':*{pageCount},mobile=${sms.mobile})}">尾页</a></li>
				</ul>
				</nav>
			</div>
			<div class="col-xs-6 col-md-4">&nbsp</div>
		</div>
	</div>

	<div th:fragment="StudentPager">
		<div class="row" th:object="${studentPageBean}">
			<div class="col-xs-6 col-md-4">
				<span th:text="共有+*{recordCount}+条记录"></span>
			</div>
			<div class="col-xs-6 col-md-4">
				<nav aria-label="...">
				<ul class="pagination">
					<li class="page-item"><a class="page-link" href="#"
						th:href="@{getStudent(school.name=${student.school} eq null ? '':${student.school.name},mobile=${student.mobile},name=${student.name},grade.id=${student.grade} eq null ? '':${student.grade.id})}">首页</a></li>
					<div
						th:each="pg : *{#numbers.sequence(beginPageIndex, endPageIndex)}">
						<li class="page-item active"
							th:if="${pg eq studentPageBean.currentPage}"><a
							class="page-link" href="#" th:text="${pg}"> <span
								class="sr-only">(current)</span></a></li>
						<li class="page-item"
							th:unless="${pg eq studentPageBean.currentPage}"><a
							class="page-link" href="#"
							th:href="@{getStudent(currentPage=${pg},school.name=${student.school} eq null ? '':${student.school.name},mobile=${student.mobile},name=${student.name},grade.id=${student.grade} eq null ? '':${student.grade.id})}"
							th:text="${pg}"></a></li>
					</div>
					<li class="page-item"><a class="page-link" href="#"
						th:href="@{getStudent(currentPage=*{pageCount} eq 0 ? '':*{pageCount},school.name=${student.school} eq null ? '':${student.school.name},mobile=${student.mobile},name=${student.name},grade.id=${student.grade} eq null ? '':${student.grade.id})}">尾页</a></li>
				</ul>
				</nav>
			</div>
			<div class="col-xs-6 col-md-4">&nbsp</div>
		</div>
	</div>

	<div th:fragment="GroupPager">
		<div class="row" th:object="${groupPageBean}">
			<div class="col-xs-6 col-md-4">
				<span th:text="共有+*{recordCount}+条记录"></span>
			</div>
			<div class="col-xs-6 col-md-4">
				<nav aria-label="...">
				<ul class="pagination">
					<li class="page-item"><a class="page-link" href="#"
						th:href="@{getGroup(schoolName=${schoolName} )}">首页</a></li>
					<div
						th:each="pg : *{#numbers.sequence(beginPageIndex, endPageIndex)}">
						<li class="page-item active"
							th:if="${pg eq groupPageBean.currentPage}"><a
							class="page-link" href="#" th:text="${pg}"> <span
								class="sr-only">(current)</span></a></li>
						<li class="page-item"
							th:unless="${pg eq groupPageBean.currentPage}"><a
							class="page-link" href="#"
							th:href="@{getGroup(currentPage=${pg},schoolName=${schoolName})}"
							th:text="${pg}"></a></li>
					</div>
					<li class="page-item"><a class="page-link" href="#"
						th:href="@{getGroup(currentPage=*{pageCount} eq 0 ? '':*{pageCount},schoolName=${schoolName})}">尾页</a></li>
				</ul>
				</nav>
			</div>
			<div class="col-xs-6 col-md-4">&nbsp</div>
		</div>
	</div>

	<div th:fragment="TeacherPager">
		<div class="row" th:object="${teacherPageBean}">
			<div class="col-xs-6 col-md-4">
				<span th:text="共有+*{recordCount}+条记录"></span>
			</div>
			<div class="col-xs-6 col-md-4">
				<nav aria-label="...">
				<ul class="pagination">
					<li class="page-item"><a class="page-link" href="#"
						th:href="@{getTeacher(school.name=${teacher.school} eq null ? '':${teacher.school.name},mobile=${teacher.mobile},name=${teacher.name},subject.id=${teacher.subject} eq null ? '':${teacher.subject.id})}">首页</a></li>
					<div
						th:each="pg : *{#numbers.sequence(beginPageIndex, endPageIndex)}">
						<li class="page-item active"
							th:if="${pg eq teacherPageBean.currentPage}"><a
							class="page-link" href="#" th:text="${pg}"> <span
								class="sr-only">(current)</span></a></li>
						<li class="page-item"
							th:unless="${pg eq teacherPageBean.currentPage}"><a
							class="page-link" href="#"
							th:href="@{getTeacher(currentPage=${pg},school.name=${teacher.school} eq null ? '':${teacher.school.name},mobile=${teacher.mobile},name=${teacher.name},subject.id=${teacher.subject} eq null ? '':${teacher.subject.id})}"
							th:text="${pg}"></a></li>
					</div>
					<li class="page-item"><a class="page-link" href="#"
						th:href="@{getTeacher(currentPage=*{pageCount} eq 0 ? '':*{pageCount},school.name=${teacher.school} eq null ? '':${teacher.school.name},mobile=${teacher.mobile},name=${teacher.name},subject.id=${teacher.subject} eq null ? '':${teacher.subject.id})}">尾页</a></li>
				</ul>
				</nav>
			</div>
			<div class="col-xs-6 col-md-4">&nbsp</div>
		</div>
	</div>

	<div th:fragment="QuestionPager">
		<div class="row" th:object="${questionPageBean}">
			<div class="col-xs-6 col-md-4">
				<span th:text="共有+*{recordCount}+条记录"></span>
			</div>
			<div class="col-xs-6 col-md-4">
				<nav aria-label="...">
				<ul class="pagination">
					<li class="page-item"><a class="page-link" href="#"
						th:href="@{getQuestion(lesson.unit.grade.id=${question.lesson} eq null ? '':(${question.lesson.unit} eq null ? '':(${question.lesson.unit.grade} eq null ? '':${question.lesson.unit.grade.id})) , lesson.unit.subject.id=${question.lesson} eq null ? '':(${question.lesson.unit} eq null ? '':(${question.lesson.unit.subject} eq null ? '':${question.lesson.unit.subject.id})) , lesson.unit.id=${question.lesson} eq null ? '':(${question.lesson.unit} eq null ? '':${question.lesson.unit.id}) , lesson.id=${question.lesson} eq null ? '':${question.lesson.id} , type=${question.type} ,description=${question.description})}">首页</a></li>
					<div
						th:each="pg : *{#numbers.sequence(beginPageIndex, endPageIndex)}">
						<li class="page-item active"
							th:if="${pg eq questionPageBean.currentPage}"><a
							class="page-link" href="#" th:text="${pg}"> <span
								class="sr-only">(current)</span></a></li>
						<li class="page-item"
							th:unless="${pg eq questionPageBean.currentPage}"><a
							class="page-link" href="#"
							th:href="@{getQuestion(currentPage=${pg} , lesson.unit.grade.id=${question.lesson} eq null ? '':(${question.lesson.unit} eq null ? '':(${question.lesson.unit.grade} eq null ? '':${question.lesson.unit.grade.id})) , lesson.unit.subject.id=${question.lesson} eq null ? '':(${question.lesson.unit} eq null ? '':(${question.lesson.unit.subject} eq null ? '':${question.lesson.unit.subject.id})) , lesson.unit.id=${question.lesson} eq null ? '':(${question.lesson.unit} eq null ? '':${question.lesson.unit.id}) , lesson.id=${question.lesson} eq null ? '':${question.lesson.id} , type=${question.type},description=${question.description} )}"
							th:text="${pg}"></a></li>
					</div>
					<li class="page-item"><a class="page-link" href="#"
						th:href="@{getQuestion(currentPage=*{pageCount} eq 0 ? '':*{pageCount} , lesson.unit.grade.id=${question.lesson} eq null ? '':(${question.lesson.unit} eq null ? '':(${question.lesson.unit.grade} eq null ? '':${question.lesson.unit.grade.id})) , lesson.unit.subject.id=${question.lesson} eq null ? '':(${question.lesson.unit} eq null ? '':(${question.lesson.unit.subject} eq null ? '':${question.lesson.unit.subject.id})) , lesson.unit.id=${question.lesson} eq null ? '':(${question.lesson.unit} eq null ? '':${question.lesson.unit.id}) , lesson.id=${question.lesson} eq null ? '':${question.lesson.id} , type=${question.type},description=${question.description} )}">尾页</a></li>
				</ul>
				</nav>
			</div>
			<div class="col-xs-6 col-md-4">&nbsp</div>
		</div>
	</div>
</body>
</html>